From 491738a4be7eb853f1da98cade4fbfd29fbf89ba Mon Sep 17 00:00:00 2001 From: "dan@guaranine.beaverton.ibm.com" Date: Mon, 28 Nov 2005 18:22:02 +0000 Subject: [PATCH] Fix isConsoleDead() to actually run a command on the DomU, since a dead console is no longer exposed when attempting to attach. This makes test 04_memset_smallmem again able to detect console death and restart xenconsoled so that the rest of the tests can run on x86_64. --- tools/xm-test/lib/XmTestLib/Test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/xm-test/lib/XmTestLib/Test.py b/tools/xm-test/lib/XmTestLib/Test.py index f6bc681cb1..4d8bb41c47 100644 --- a/tools/xm-test/lib/XmTestLib/Test.py +++ b/tools/xm-test/lib/XmTestLib/Test.py @@ -174,9 +174,11 @@ def isConsoleDead(): try: domain.start() console = XmConsole(domain.getName()) + console.runCmd("ls") except DomainError, e: return True except ConsoleError, e: + domain.destroy() return True domain.destroy() -- 2.30.2